#!/usr/bin/ruby -w
# -*- coding: UTF-8 -*-

=begin 
@author = sirius
@time = 2017.11.12
=end

# each 迭代器
ary = [1,2,3,4,5]
ary.each do |i|
   puts i
end

# collect 迭代器
a = [1,2,3,4,5]
b = Array.new
b = a.collect{ |x|x }
puts b